<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

class MY_Controller extends CI_Controller {
    public function __construct() {
        parent::__construct();
        $this->load->helper('url');
    }

    public function renderJSON($aResult) {
        $this->output->set_content_type('application/json')->set_output(json_encode($aResult));
    }
}
?>